package com.bw.biz.controller;


import com.bw.biz.pojo.TbBill;
import com.bw.biz.service.TbBillService;
import com.bw.core.result.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 账单表&还款计划表 前端控制器
 * </p>
 *
 * @author lv
 * @since 2021-03-23
 */
@RestController
@RequestMapping("/tb-bill")
public class TbBillController {
    @Autowired
    private TbBillService billService;

    @GetMapping("list")
    public List<TbBill> list(){
        return billService.list();
    }
    @GetMapping("/affrimRepay")
    public ResponseResult affrimRepay(){
        return billService.affrimRepay();
    }
    @GetMapping("/repayPlan")
    public void repayPlan(){
        billService.repayPlan();
    }
}
